@ layout("/common/_layout.html"){
   <div class="wrap">
    <div class="content" style="margin-right:0">
      <div class="fly-tab">
        <span>
          <a href="${ctxPath}/topic/all" ${isSame("all", action!, "class='tab-this'")}>全部</a>
          <a href="${ctxPath}/topic/nice" ${isSame("nice", action!, "class='tab-this'")}>精帖</a>
          <!-- 
          <a href="${ctxPath}/topic/noclose" class="tab-this">未结帖</a>
          <a href="${ctxPath}/topic/nice" class="tab-this">已采纳</a>
          <a href="${ctxPath}/leaveMsg">留言</a>
           -->
          <a href="#">我的帖</a>
        </span>
        <form action="#" class="fly-search">
          <i class="iconfont icon-sousuo"></i>
          <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转" type="text" name="q">
        </form>
        <a href="${ctxPath}/topic/add" class="layui-btn jie-add">发布问题</a>
      </div>
    
    <ul class="fly-list">
      @ for(topic in topicPage.list!){
        <li class="fly-list-li">
          <a href="${ctxPath}/topic/${topic.id}" class="fly-list-avatar">
            <img src="${topic.user.headImg!}" alt="${topic.content}">
          </a>
          <h2 class="fly-tip">
            <a href="${ctxPath}/topic/${topic.id}">${topic.content}</a>
            @ if(topic.isNice!){
            	<span class="fly-tip-jing">精帖</span>
        	@ }
            @ if(topic.isUp!){
            	<span class="fly-tip-stick">置顶</span>
        	@ }
          </h2>
          <p>
            <span><a href="#">${topic.user.username!}</a></span>
            <span>${printTime(topic.createTime)}</span>
            <span>${topic.module.name}</span>
            @ if(topic.point>0){
            	<span style="color:#FF7200">悬赏：${topic.point}</span>
        	@ }
            <span class="fly-list-hint"> 
              <i class="iconfont" title="回答">&#xe60c;</i> ${topic.postCount}
              <i class="iconfont" title="人气">&#xe60b;</i> ${topic.pv}
            </span>
          </p>
        </li>
        @ }
      </ul>
    
    <!-- 
    <div class="fly-none">并无相关数据</div>
     -->
     @ include("/common/_paginate.html",
     @ {"currentPage":topicPage.pageNumber,"totalPage":topicPage.totalPage,"actionUrl":actionUrl!}) {}
    </div>
  </div>
<!-- 
<div class="-navbar">
    <div class="-navbar-inner">
        <ul class="clearfix -nav">
            <li class="pull-left"><a href="${ctxPath}/">首页</a></li>
            <li class="pull-left">
                <a href="${ctxPath}/topic/hot">浏览最多</a>
            </li>
            <li class="pull-left">
                <a href="${ctxPath}/topic/nice">精华帖子</a>
            </li>
            <li class="pull-left">
                <a href="${ctxPath}/topic/add">发表新话题</a>
            </li>
            <li class="pull-left">
                <a href="${ctxPath}/leaveMsg" title="欢迎提出建议(●Ｕ_Ｕ●)">留言</a>
            </li>
        </ul>
    </div>
</div>
 -->
@ }